package com.itheima.operator;

public class OperatorTest2 {
    public static void main(String[] args) {
        // 需求：一个三位数，输出个位，十位，百位
        int number = 358;
        // 个位
        int ge = number % 10;
        System.out.println(number + "的个位是:" + ge);

        // 十位
        int shi = number / 10  % 10;
        System.out.println(number + "的十位是:" + shi);

        // 百位
        int bai = number / 100; // 3.58
        System.out.println(number + "的百位是:" + bai);
    }
}
